﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Pahan.McuFusion.UI.Events
{
    /// <summary>
    /// This is a generic descedant of <see cref="EventArgs"/> that can be used to
    /// transfer data via events between presenters, views and script objects.
    /// </summary>
    /// <typeparam name="T">The type of transfered data.</typeparam>
    public class DataTransferEventArgs<T> : EventArgs
    {
        public DataTransferEventArgs()
        {
        }

        public DataTransferEventArgs(T data)
        {
            this.Data = data;
        }

        public T Data
        {
            get;
            set;
        }
    }
}
